package com.github.chirspan.xaas.auth.config;

import com.github.chirspan.xaas.api.config.WebDefaultConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;

import java.util.List;

/**
 * ************************
 * <p></p>
 * *************************
 *
 * @author chenpan
 * @date 2020/10/19 16:12
 */
@Configuration
public class OAuthWebDefaultConfig extends WebDefaultConfig {

    @Override
    protected void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
        Oauth2HttpMessageConverter oauth2HttpMessageConverter = new Oauth2HttpMessageConverter();
        converters.add(0, oauth2HttpMessageConverter);
    }
}
